<%
  #File:    /app/views/manage/users/_contact_info.rhtml
  #Author:  Andrew Stone
  #Created: 08.02.2006
%>
<%
  @contacts.each do |ctact|
    label = ctact.name
    tclass = "label"
    if ctact.is_required
      label = "* #{label}"
      tclass = "req_label"
    end %>
    <tr>
      <td class="<%=tclass%>"><%=label%>:</td>
      <td class="data">
        <% if edit_user %>
          <%=text_field_tag("contact_#{ctact.type_id}",ctact.value,:size => 40)%>
        <% else %>
            <%=h(ctact.value)%>
        <% end %>
      </td>
    </tr> <%
  end
%>

